﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace FriendTest.Models
{
    public class MyLogOnModel
    {
        [Required]
        [DisplayName("邮箱")]
        public string userName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [DisplayName("密码")]
        public string passWord { get; set; }

        [DisplayName("记住我？")]
        public bool rememberMe { get; set; }
    }

    public class MyRegisterModel
    {
        [Required]
        [DisplayName("昵称")]
        public string userName { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [DisplayName("电子邮箱地址")]
        public string emailAddress { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [DisplayName("密码")]
        public string passWord { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [DisplayName("确认密码")]
        public string confirmPassword { get; set; }

        [Required]
        [DisplayName("性别")]
        public int gender { get; set; }
    }
}